﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace JaxaraRnD.Models.Objects
{
    public class Staff
    {
        [Key]
        public virtual int Id { get; set; }


        [Required]
        [StringLength(160, ErrorMessage = "*required")]
        [DataType(DataType.Text)]
        [Display(Name = "Staff Name: ")]
        public virtual string Name { get; set; }

        [Required]
        [StringLength(160, ErrorMessage = "*required")]
        [DataType(DataType.Text)]
        [Display(Name = "Department Name: ")]
        public virtual string Department { get; set; }

        [UIHint("Orders")]
        public virtual IList<Order> Orders { get; set; }

        public Staff()
        {
            Orders = new List<Order>();
        }
    }
}